package com.niiwoo.civet.scheduler.trigger;

import com.alibaba.dubbo.config.annotation.Reference;
import com.niiwoo.civet.account.service.trade.WithholdDubboService;
import com.niiwoo.civet.account.service.withholdProtocol.WithholdProtocolDubboService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 协议签约确认
 * Created by xiaoyaocai on 2018/5/24.
 */
@Component
@Slf4j
public class WithholdProtocolJobTrigger {

    @Reference(version = "1.0.0")
    private WithholdProtocolDubboService withholdProtocolDubboService;

    /**
     * 查询懒猫代扣结果
     * 暂时停用
       #withhold-protocol:
       #协议签约确认-补单：每2分钟一次
       #confirm-protocol-sign-compensation: "0 0/2 * * * ?"
     */
    //@Scheduled(cron = "${withhold-protocol.confirm-protocol-sign-compensation}")
    public void queryLanMaoWithholdResultJob(){
        withholdProtocolDubboService.autoCompensation();
    }

}
